# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# parcel_to_censusBlocks.py
# Created on: 2016-07-14 18:07:27.00000
#   (generated by ArcGIS/ModelBuilder)
# Description: 
# ---------------------------------------------------------------------------

# Set the necessary product code
# import arcinfo


# Import arcpy module
import arcpy


# Local variables:
AO_XY__2_ = "[..]\\Analysis\\GIS\\intermediate.gdb\\AO_XY"
Clark_blocks_1990_shp = "[..]\\Analysis\\GIS\\input\\censusBlocks\\Clark_co_1990_blocks\\Clark_blocks_1990.shp"
v1990_Clark_Blocks_projected = "[..]\\Analysis\\GIS\\intermediate.gdb\\cb1990p"
AO_XY_Identity2 = "[..]\\ArcGIS\\Default1.gdb\\AO_XY_Identity2"
parcel_block_1990_txt = "[..]\\Analysis\\GIS\\output\\parcel_block_1990"
tl_2010_32003_tabblock00_shp = "[..]\\Analysis\\GIS\\input\\censusBlocks\\tl_2010_32003_tabblock00\\tl_2010_32003_tabblock00.shp"
v2000_Clark_Blocks_projected = "[..]\\Analysis\\GIS\\intermediate.gdb\\cb2000p"
AO_XY_Identity1 = "[..]\\ArcGIS\\Default1.gdb\\AO_XY_Identity1"
parcel_block_2000_txt = "[..]\\Analysis\\GIS\\output\\parcel_block_2000"
tl_2010_32003_tabblock10_shp = "[..]\\Analysis\\GIS\\input\\censusBlocks\\tl_2010_32003_tabblock10\\tl_2010_32003_tabblock10.shp"
v2010_Clark_Blocks_projected = "[..]\\Analysis\\GIS\\intermediate.gdb\\cb2010p"
AO_XY_Identity = "[..]\\ArcGIS\\Default1.gdb\\AO_XY_Identity"
parcel_block_2010_txt = "[..]\\Analysis\\GIS\\output\\parcel_block_2010"

# Process: Project_1990
arcpy.Project_management(Clark_blocks_1990_shp, v1990_Clark_Blocks_projected, "PROJCS['NAD_1983_StatePlane_Nevada_East_FIPS_2701_Feet',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',656166.6666666665],PARAMETER['False_Northing',26246666.66666666],PARAMETER['Central_Meridian',-115.5833333333333],PARAMETER['Scale_Factor',0.9999],PARAMETER['Latitude_Of_Origin',34.75],UNIT['Foot_US',0.3048006096012192]]", "", "PROJCS['USA_Contiguous_Albers_Equal_Area_Conic',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',0.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-96.0],PARAMETER['Standard_Parallel_1',29.5],PARAMETER['Standard_Parallel_2',45.5],PARAMETER['Latitude_Of_Origin',37.5],UNIT['Meter',1.0]]", "NO_PRESERVE_SHAPE", "", "NO_VERTICAL")

# Process: Identity (3)
arcpy.Identity_analysis(AO_XY__2_, v1990_Clark_Blocks_projected, AO_XY_Identity2, "ALL", "", "NO_RELATIONSHIPS")

# Process: ExportASCII_1990block
arcpy.ExportXYv_stats(AO_XY_Identity2, "parcel;STFID", "COMMA", parcel_block_1990_txt, "ADD_FIELD_NAMES")

# Process: Project_2000
arcpy.Project_management(tl_2010_32003_tabblock00_shp, v2000_Clark_Blocks_projected, "PROJCS['NAD_1983_StatePlane_Nevada_East_FIPS_2701_Feet',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',656166.6666666665],PARAMETER['False_Northing',26246666.66666666],PARAMETER['Central_Meridian',-115.5833333333333],PARAMETER['Scale_Factor',0.9999],PARAMETER['Latitude_Of_Origin',34.75],UNIT['Foot_US',0.3048006096012192]]", "", "GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]", "NO_PRESERVE_SHAPE", "", "NO_VERTICAL")

# Process: Identity (2)
arcpy.Identity_analysis(AO_XY__2_, v2000_Clark_Blocks_projected, AO_XY_Identity1, "ALL", "", "NO_RELATIONSHIPS")

# Process: ExportASCII_2000block
arcpy.ExportXYv_stats(AO_XY_Identity1, "parcel;BLKIDFP00", "COMMA", parcel_block_2000_txt, "ADD_FIELD_NAMES")

# Process: Project_2010
arcpy.Project_management(tl_2010_32003_tabblock10_shp, v2010_Clark_Blocks_projected, "PROJCS['NAD_1983_StatePlane_Nevada_East_FIPS_2701_Feet',GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',656166.6666666665],PARAMETER['False_Northing',26246666.66666666],PARAMETER['Central_Meridian',-115.5833333333333],PARAMETER['Scale_Factor',0.9999],PARAMETER['Latitude_Of_Origin',34.75],UNIT['Foot_US',0.3048006096012192]]", "", "GEOGCS['GCS_North_American_1983',DATUM['D_North_American_1983',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]", "NO_PRESERVE_SHAPE", "", "NO_VERTICAL")

# Process: Identity
arcpy.Identity_analysis(AO_XY__2_, v2010_Clark_Blocks_projected, AO_XY_Identity, "ALL", "", "NO_RELATIONSHIPS")

# Process: ExportASCII_2010block
arcpy.ExportXYv_stats(AO_XY_Identity, "parcel;GEOID10", "COMMA", parcel_block_2010_txt, "ADD_FIELD_NAMES")

